package com.cy.pj.common.service;

import com.cy.pj.common.cache.Cathe;
import com.cy.pj.common.cache.SoftCathe;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class CatheService {

    private Cathe cathe;

    /*CatheService(@Qualifier("softCathe") Cathe cathe){
        this.cathe=cathe;
    }*/

    @Autowired
    public void setCathe(@Qualifier("softCathe") Cathe cathe) {
        this.cathe = cathe;
    }

    public Cathe getCathe() {
        return cathe;
    }
}
